.class public Lcom/glympse/android/glympse/DlgAvatarPicker$AvatarSourceAdapter;
.super Landroid/widget/ArrayAdapter;
.source "DlgAvatarPicker.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/glympse/android/glympse/DlgAvatarPicker;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x4
    name = "AvatarSourceAdapter"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Landroid/widget/ArrayAdapter",
        "<",
        "Lcom/glympse/android/glympse/DlgAvatarPicker$AvatarSource;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/glympse/android/glympse/DlgAvatarPicker;


# direct methods
.method public constructor <init>(Lcom/glympse/android/glympse/DlgAvatarPicker;Landroid/content/Context;Ljava/util/ArrayList;)V
    .locals 1
    .parameter
    .parameter "oContext"
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/glympse/android/glympse/DlgAvatarPicker$AvatarSource;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 171
    .local p3, listAvatarSources:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/glympse/android/glympse/DlgAvatarPicker$AvatarSource;>;"
    iput-object p1, p0, Lcom/glympse/android/glympse/DlgAvatarPicker$AvatarSourceAdapter;->this$0:Lcom/glympse/android/glympse/DlgAvatarPicker;

    .line 170
    const/4 v0, 0x0

    invoke-direct {p0, p2, v0, p3}, Landroid/widget/ArrayAdapter;-><init>(Landroid/content/Context;ILjava/util/List;)V

    return-void
.end method


# virtual methods
.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 6
    .parameter "nPosition"
    .parameter "convertView"
    .parameter "parent"

    .prologue
    .line 176
    invoke-virtual {p0, p1}, Lcom/glympse/android/glympse/DlgAvatarPicker$AvatarSourceAdapter;->getItem(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/glympse/android/glympse/DlgAvatarPicker$AvatarSource;

    .line 178
    .local v1, oAvatarSource:Lcom/glympse/android/glympse/DlgAvatarPicker$AvatarSource;
    invoke-virtual {p0}, Lcom/glympse/android/glympse/DlgAvatarPicker$AvatarSourceAdapter;->getContext()Landroid/content/Context;

    move-result-object v4

    invoke-static {v4}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    .line 179
    .local v0, inflater:Landroid/view/LayoutInflater;
    const v4, 0x7f030022

    const/4 v5, 0x0

    invoke-virtual {v0, v4, p3, v5}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

    move-result-object v3

    .line 182
    .local v3, v:Landroid/view/View;
    const v4, 0x7f0c007b

    invoke-virtual {v3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p0

    .end local p0
    check-cast p0, Landroid/widget/ImageView;

    iget v4, v1, Lcom/glympse/android/glympse/DlgAvatarPicker$AvatarSource;->m_nImage:I

    invoke-virtual {p0, v4}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 185
    const v4, 0x7f0c006f

    invoke-virtual {v3, v4}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    .line 186
    .local v2, oTextView:Landroid/widget/TextView;
    iget-object v4, v1, Lcom/glympse/android/glympse/DlgAvatarPicker$AvatarSource;->m_strName:Ljava/lang/String;

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 188
    return-object v3
.end method
